-
Notifications
You must be signed in to change notification settings - Fork 1
Add precompile interfaces for Multi-Constraint Pricer #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
function getPricesInArbGas() external view returns (uint256, uint256, uint256); | ||
|
||
/// @notice Get the gas accounting parameters. `gasPoolMax` is always zero, as the exponential pricing model has no such notion. | ||
/// @return (speedLimitPerSecond, gasPoolMax, maxBlockGasLimit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the other two values gasPoolMax, maxBlockGasLimit
, should we add methods for them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that for the new model all these fields should be zeros. If confirmed, I'll update the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See OffchainLabs/nitro#3860 (comment)
I think we should have another method that returns just the maxBlockGasLimit.
/// @notice Get the maxBlockGasLimit
/// @notice Available in ArbOS version 50 and above
function getMaxBlockGasLimit() external view returns (uint256);
7b1e927
to
96ed82d
Compare
function getPricesInArbGas() external view returns (uint256, uint256, uint256); | ||
|
||
/// @notice Get the gas accounting parameters. `gasPoolMax` is always zero, as the exponential pricing model has no such notion. | ||
/// @return (speedLimitPerSecond, gasPoolMax, maxBlockGasLimit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See OffchainLabs/nitro#3860 (comment)
I think we should have another method that returns just the maxBlockGasLimit.
/// @notice Get the maxBlockGasLimit
/// @notice Available in ArbOS version 50 and above
function getMaxBlockGasLimit() external view returns (uint256);
Part of NIT-4021
Add Multi-Constraint Pricer methods:
getGasPricingConstraints
toArbGasInfo
to fetch constraints as an array of triples (gas_target_per_second, time_constant_seconds, backlog)setGasPricingConstraints
toArbOwner
to set constraints as an array of pairs (gas target, time constraint)